package com.cloudxingkong.dianyinke.NewTeacher.Utils;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.HashMap;

/**
 * Created by 云星空科技 on 2016/3/23.
 */
public class LoginJsonUtils {
    public static HashMap<String,Object> getJsonFromLogin(String json){
        HashMap<String,Object> data=null;
        try {
            data=new HashMap<>();
            JSONObject object=new JSONObject(json);
            data.put("success",object.get("success"));
            JSONObject object1=object.getJSONObject("obj");
            data.put("memtype",object1.get("memtype"));
            return data;
        } catch (JSONException e) {
            e.printStackTrace();
        }
           return data;
    }
}
